<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>登录界面</title>

<script type="text/javascript" src="../jqueryui/js/jquery-1.9.0.min.js"></script>
<script type="text/javascript"
	src="../jqueryui/js/jquery-ui-1.10.0.custom.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="../jqueryui/css/smoothness/jquery-ui-1.10.0.custom.min.css" />
<link rel="stylesheet" type="text/css" href="../css/login.css" />

<%
	String flag = request.getParameter("flag");
	if (flag == null) {
		flag = "a";
	}
	if (flag.equals("exit")) {
		request.getSession(true).removeAttribute("user");
	}
%>
<script type="text/javascript">
	$(function() {
		$("#userErr").hide();
		$("#passErr").hide();
	})

	$(function() {
<%if (flag.equals("WrongName")) {%>
	$("#userErr").show();
<%} else if (flag.equals("WrongPassword")) {%>
	$("#passErr").show();
<%}%>
	})
</script>

</head>
<body>
	<div class="all">
	<div class="mainDIV">
		<div class="logo">
			<img src="../image/wiscom_logo.png" alt="" />
		</div>

		<form action="UserDeal?flag=check_meeting" method="post">
			<div class="login">
				<div class="DIV1">
					<div class="DIV2">
						<div class="NameErr" id="userErr">用户不存在&nbsp;</div>
						<div class="PassErr" id="passErr">密码错误&nbsp;</div>
					</div>

					<div class="DIV3">
						帐号： <input name="userNumber" class="userNumber" type="text" />
					</div>

					<div class="DIV4">
						密码： <input name="userPassword" class="userPassword"	type="password" />
					</div>

					<div class="DIV5">
						<input id="denglu" name="Submit2" type="submit" value="登录" />
					</div>
					<div class="DIV6">
						<input id="reset" name="Submit232" type="reset" value="重置" />
					</div>
				</div>
			</div>

		</form>
		<div class="footer">
			Copyright © 电子科技大学 2013 All Rights Reserved <br />
			推荐使用IE8.0以上浏览器，1024*768以上分辨率访问本网站
		</div>
	</div>
	<script>
		$("#denglu").button().css({
			"background" : "#09F",
			"color" : "#FFF",
			"height" : "30px",
			"width" : "100px",
			"font-size" : "12px"
		});
		$("#reset").button().css({
			"background" : "#09F",
			"color" : "#FFF",
			"height" : "30px",
			"width" : "100px",
			"font-size" : "12px"
		});
	</script>
	</div>
</body>
</html>